package task1;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 东莞呵呵
 * Date:2022-06-14
 * Time:14:08
 */
public class Pharmacy {
    public static void main(String[] args) {
        Drug drugs[]=new Drug[50];
        Scanner scanner=new Scanner(System.in);
        for (int i = 0; i < drugs.length; i++) {
            drugs[i]=new Drug();
            drugs[i].setName(scanner.next());
            drugs[i].setPrice(scanner.nextDouble());
        }
        for (int i = 0; i < drugs.length; i++) {
            System.out.println(drugs[i].getName()+"，"+drugs[i].getPrice()+"元");
        }
    }
}
